home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / Booting Gallery / Booting Gallery (source) / Sources / Sprite Sources / A5World.cpp next >
Encoding:
C/C++ Source or Header  |  1996-06-22  |  435 b   |  47 lines  |  [TEXT/BROW]

  1. #include "A5World.h"
  2. #include <globals.h>
  3.  
  4.  
  5.  
  6. A5World::A5World()
  7. {
  8. #ifdef __G_A4__
  9.     long        saveA5 = GetA5();
  10.     
  11.     SetA5((long)&a5PointsHere);
  12.     
  13.     InitGraf(&fQD.thePort);
  14.     
  15.     SetA5(saveA5);
  16. #endif
  17.     
  18. }
  19.  
  20.  
  21. void    A5World::Restore(long old)
  22. {
  23. #ifdef __G_A4__
  24.     SetA5(old);
  25. #endif
  26. }
  27.  
  28.  
  29. A5World::~A5World()
  30. {
  31.     
  32. }
  33.  
  34.  
  35. long    A5World::Use()
  36. {
  37. #ifdef __G_A4__
  38.     long    saveA5 = GetA5();
  39.     
  40.     SetA5((long)&a5PointsHere);
  41.     
  42.     return saveA5;
  43. #else
  44.     return 0;
  45. #endif
  46. }
  47.